﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Best.SmartCms.Domain.Common
{
    /// <summary>
    /// 联系人
    /// </summary>
    [Table("Contact")]
    public class Contact: BaseDomain
    {
        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [StringLength(50)]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        [StringLength(50)]
        public string Role { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsDefault { get; set; }

        /// <summary>
        /// 业务表Id
        /// </summary>
        [StringLength(50)]
        public string SourceId { get; set; }
        /// <summary>
        /// 所属业务
        /// </summary>
        public int SourceType { get; set; }

        /// <summary>
        /// 有效性
        /// </summary>
        public bool Enabled { get; set; }
    }
}
